package cn.xfdzx.android.apps.shop.model;


import java.util.List;
import java.util.Map;

import cn.xfdzx.android.apps.shop.bean.AfterMarketInfoBean;
import cn.xfdzx.android.apps.shop.bean.AfterServiceUpLoadMoreImgBean;
import cn.xfdzx.android.apps.shop.bean.AfterServiceUpLoadSingImgBean;
import cn.xfdzx.android.apps.shop.bean.OrderDetailInfoBeen;
import cn.xfdzx.android.apps.shop.bean.OrderProcessBeen;
import cn.xfdzx.android.apps.shop.bean.ReturnReasonBean;
import cn.xfdzx.android.apps.shop.contract.AfterServiceContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;
import okhttp3.MultipartBody;

/**
 * @author zf
 * @date 2020/7/14.
 * Description：
 */
public class AfterServiceModel implements AfterServiceContract.Model {

    @Override
    public Flowable<AfterServiceUpLoadMoreImgBean> uploadMoreImg(List<MultipartBody.Part> files) {
        return RetrofitClient.getInstance().getApi().upLoadMoreImg(files);
    }

    @Override
    public Flowable<AfterServiceUpLoadSingImgBean> uploadSingImg(List<MultipartBody.Part> files) {
        return RetrofitClient.getInstance().getApi().upLoadSingImg(files);
    }

    @Override
    public Flowable<ReturnReasonBean> getReturnReason() {
        return RetrofitClient.getInstance().getApi().getReturnReason();
    }

    @Override
    public Flowable<OrderProcessBeen> getAfterServiceRequest(Map<String, Object> param) {
        return RetrofitClient.getInstance().getApi().getAfterServiceRequestRetail(param);
    }

    @Override
    public Flowable<ReturnReasonBean> getAfterServiceCancle(Map<String, Object> param) {
        return RetrofitClient.getInstance().getApi().getAfterServiceCancle(param);
    }

    @Override
    public Flowable<OrderProcessBeen> getAfterServiceProgress(Map<String, Object> param) {
        return RetrofitClient.getInstance().getApi().getAfterServiceProgress(param);
    }

    @Override
    public Flowable<OrderDetailInfoBeen> getOrderDetail(String orderid) {
        return RetrofitClient.getInstance().getApi().getOrderDetail(orderid);
    }

    @Override
    public Flowable<OrderProcessBeen> getMarketAfterServiceRequest(Map<String, Object> param) {
        return RetrofitClient.getInstance().getApi().getMarketAfterServiceRequest(param);
    }

    @Override
    public Flowable<ReturnReasonBean> getMarketAfterServiceCancle(Map<String, Object> param) {
        return RetrofitClient.getInstance().getApi().getMarketAfterServiceCancle(param);
    }

    @Override
    public Flowable<AfterMarketInfoBean> getMarketAfterServiceInfo(Map<String, Object> param) {
        return RetrofitClient.getInstance().getApi().getMarketAfterServiceInfo(param);
    }
}
